import request from '../utils/request';
import { AxiosRequestConfig } from 'axios'
export const GetSquadsList =(urlParams: any): Promise<unknown> => {
    return request({
        url:'/fm/api/squads/list',
        method: 'get',
        params:urlParams,
    });
};
export const AddSquads =(urlParams: any): Promise<unknown>  => {
    return request({
        url: '/fm/api/squads/add ',
        method: 'post',
        data:urlParams
    });
};
export const EditSquads =(urlParams: any): Promise<unknown>  => {
    return request({
        url: '/fm/api/squads/edit',
        method: 'post',
        data:urlParams
    });
};
export const DeleSquads = (id: number): Promise<unknown>  => {
    return request({
        url: `/fm/api/squads/delete?id=${id}`,
        method: 'delete'
    });
};


export const GetPlayerList =(urlParams: any): Promise<unknown> => {
    return request({
        url:'/fm/api/player/list',
        method: 'get',
        params:urlParams,
    });
};